API Documentation
Public Member Functions | List of all members
nkWinUi::ComboBox::Entry Class Referencefinal

Represents an entry within the combo box. More...

Public Member Functions

 Entry ()
 
 ~Entry ()
 
const char * getLabel () const
 
void * getAttachedData () const
 
void setLabel (const std::string_view &label)
 
void setAttachedData (void *data)
 

Detailed Description

Represents an entry within the combo box.

Constructor & Destructor Documentation

◆ Entry()

nkWinUi::ComboBox::Entry::Entry ( )

Constructor.

◆ ~Entry()

nkWinUi::ComboBox::Entry::~Entry ( )

Destructor.

Member Function Documentation

◆ getLabel()

const char* nkWinUi::ComboBox::Entry::getLabel ( ) const
Returns
The entry label.

◆ getAttachedData()

void* nkWinUi::ComboBox::Entry::getAttachedData ( ) const
Returns
User data attached to the entry.

◆ setLabel()

void nkWinUi::ComboBox::Entry::setLabel ( const std::string_view &  label)

Sets the label.

Parameters
labelThe label to set.

◆ setAttachedData()

void nkWinUi::ComboBox::Entry::setAttachedData ( void *  data)

Sets the user data attached.

Parameters
dataThe data to attach.
Remarks
The Entry is not responsible for passed data.

The documentation for this class was generated from the following file: